| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict' |
||
| 13 | context('.all', () => { |
||
| 14 | it('Should throw exception if server is not provided', () => { |
||
| 15 | try { |
||
| 16 | endpoints.listAll() |
||
| 17 | } catch (error) { |
||
| 18 | expect(error.code).to.be.equal('ERR_ASSERTION') |
||
| 19 | } |
||
| 20 | }) |
||
| 21 | it('Should not return empty', () => { |
||
| 22 | const output = endpoints.listAll(server) |
||
| 23 | expect(output).to.be.not.undefined() |
||
| 24 | expect(output).to.be.not.null() |
||
| 25 | }) |
||
| 26 | }) |
||
| 27 | }) |
||
| 28 |